/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const mallRouter = {
  path: '/mall-management',
  component: Layout,
  redirect: '/mall-management/data-query',
  name: '商城管理',
  meta: {
    title: '商城管理',
    icon: 'shopping'
  },
  children: [
    {
      path: 'category-management',
      component: () => import('@/views/mall-management/category-management'),
      name: '品类管理',
      meta: { title: '品类管理' }
    },
    {
      path: 'goods-management',
      component: () => import('@/views/mall-management/goods-management'),
      name: '商品管理',
      meta: { title: '商品管理' }
    },
    {
      path: 'order-management',
      component: () => import('@/views/mall-management/order-management'),
      name: '订单管理',
      meta: { title: '订单管理' }
    },
    {
      path: 'after-sale-service',
      component: () => import('@/views/mall-management/after-sale-service'),
      name: '售后服务',
      meta: { title: '售后服务' }
    },
    {
      path: 'bill-templates',
      component: () => import('@/views/mall-management/bill-templates'),
      name: '运费模板',
      meta: { title: '运费模板' }
    }
  ]
}
export default mallRouter
